package com.neusoft.feign;

import com.neusoft.po.CommonResult;
import com.neusoft.po.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name="orders-server",fallback=FeignClientCallBack.class)
public interface OrdersFeignClient {

    @GetMapping("/OrdersController/getOrdersById/{orderId}")
    CommonResult<Orders> getOrderById(@PathVariable("orderId")int orderId);
}
